
<template>
<div class="org">
    <implant-menu :pageInfo="menuInfo" :menuData="menuData" @menuCheck="menuCheck"></implant-menu>
</div>
</template>

<script>
import ImplantMenu from "@/components/ImplantMenu.vue"
export default {
    name: "org",
    components: {
        ImplantMenu
    },
    computed: {},
    data: () => ({
        menuInfo: {
            pageName: "组织设置",
            isShowHelp: true
        },
        menuData: [
            {
                name: "组织机构",
                routerPath: "/org/organization/account",
                checked: true,
                group: [
                    {
                        name: "单位管理",
                        iconName: "vcloud-Unitmanagement",
                        routerPath: "/org/organization/account",
                        iframeSrc: "/organization/account.do?method=listAccounts"
                    },
                    {
                        name: "部门管理",
                        iconName: "vcloud-yingyongjieru",
                        routerPath: "/org/organization/moveDept",
                        iframeSrc: "/organization/department.do?method=showDepartmentFrame&style=tree"
                    }
                ]
            }, {
                name: "岗位角色",
                routerPath: "/org/role/post",
                checked: false,
                group: [
                    {
                        name: "岗位管理",
                        iconName: "vcloud-Positionmanagement",
                        routerPath: "/org/role/post",
                        iframeSrc: "/organization/postController.do?method=showPostframe"
                    },
                    {
                        name: "职务级别管理",
                        iconName: "vcloud-Levelmanagement",
                        routerPath: "/org/role/level",
                        iframeSrc: "/organization/levelController.do?method=showLevelframe"
                    },
                     {
                        name: "角色权限管理",
                        iconName: "vcloud-Rolepermissionmanagement",
                        routerPath: "/org/role/role",
                        iframeSrc: "/organization/role.do?method=showRoleList"
                    }
                ]
            }, {
                name: "人员信息",
                routerPath: "/org/member",
                iframeSrc: "/organization/member.do?method=listByAccount&rescode=T02_memberList",
                checked: false,
            }, {
                name: "多维组织",
                routerPath: "/org/business",
                iframeSrc: "/businessorganization/account.do?method=index",
                checked: false,
            }, {
                name: "组管理",
                routerPath: "/org/team",
                iframeSrc: "/organization/teamController.do?method=showTeamframe",
                checked: false,
            }, {
                name: "编外人员",
                routerPath: "/org/conPost",
                iframeSrc: "/organization/conPost.do?method=index",
                checked: false,
            }
        ]
    }),
    created() {},
    mounted() {
    },
    watch: {
    },
    methods: {
        menuCheck(menu) {
            this.menuData.forEach(item =>{
                item.checked = menu.name === item.name;
            })
        }
    }
}
</script>
<style lang="scss" src="../../assets/styles/org/index.scss" scoped></style>